/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ht.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author yy
 * @version 2017-02-27
 */
public class HtContract extends DataEntity<HtContract> {
	
	private static final long serialVersionUID = 1L;
	private String houseCode;		// 房编号
	private String contractCode;		// 合同编号
	private String clientName;		// 客户姓名
	private String clientCode;		// 客户编号
	private String content;		// 内容
	private String files;		// 附件
	private String checkStatus;		// 审核状态
	private String tradeType;		// 交易类型
	private String cost;		// 费用
	private String status;		// 合同状态
	private HtClient client;   //客户
	private HtHouse house ;   //房源
	
	public HtContract() {
		super();
	}

	public HtContract(String id){
		super(id);
	}

	@Length(min=0, max=64, message="房编号长度必须介于 0 和 64 之间")
	public String getHouseCode() {
		return houseCode;
	}

	public void setHouseCode(String houseCode) {
		this.houseCode = houseCode;
	}
	
	@Length(min=1, max=64, message="合同编号长度必须介于 1 和 64 之间")
	public String getContractCode() {
		return contractCode;
	}

	public void setContractCode(String contractCode) {
		this.contractCode = contractCode;
	}
	
	@Length(min=1, max=64, message="客户姓名长度必须介于 1 和 64 之间")
	public String getClientName() {
		return clientName;
	}

	public void setClientName(String clientName) {
		this.clientName = clientName;
	}
	
	@Length(min=1, max=64, message="客户编号长度必须介于 1 和 64 之间")
	public String getClientCode() {
		return clientCode;
	}

	public void setClientCode(String clientCode) {
		this.clientCode = clientCode;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=2000, message="附件长度必须介于 0 和 2000 之间")
	public String getFiles() {
		return files;
	}

	public void setFiles(String files) {
		this.files = files;
	}
	
	@Length(min=1, max=11, message="审核状态长度必须介于 1 和 11 之间")
	public String getCheckStatus() {
		return checkStatus;
	}

	public void setCheckStatus(String checkStatus) {
		this.checkStatus = checkStatus;
	}
	
	@Length(min=1, max=11, message="交易类型长度必须介于 1 和 11 之间")
	public String getTradeType() {
		return tradeType;
	}

	public void setTradeType(String tradeType) {
		this.tradeType = tradeType;
	}
	
	public String getCost() {
		return cost;
	}

	public void setCost(String cost) {
		this.cost = cost;
	}
	
	@Length(min=0, max=1, message="合同状态长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public HtClient getClient() {
		return client;
	}

	public void setClient(HtClient client) {
		this.client = client;
	}

	public HtHouse getHouse() {
		return house;
	}

	public void setHouse(HtHouse house) {
		this.house = house;
	}
}